import java.util.Properties;

import org.hibernate.cfg.Configuration;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;


public class Main {
	
	public static void main(String[] args) throws Exception {
//		System.out.println("Inicio");
//
//		Configuration cfg = new Configuration("META-INF/persistence.xml");
//		cfg.configure();
//		SchemaExport se = new SchemaExport(cfg);
//		se.create(true, true);
//
//		System.out.println("Fim");
		
		System.out.println("Starting schema export");
		
		Ejb3Configuration cfg = new Ejb3Configuration().configure("SistemaProjetoBloco", new Properties());		
		Configuration hbmcfg = cfg.getHibernateConfiguration();		
		SchemaExport schemaExport = new SchemaExport(hbmcfg);		
		
//		schemaExport.setFormat(format);
		
		schemaExport.execute(true, false, false, true);
		
	}

}
